//
//  ScrollPaddingFrameView.swift
//  MyCloset
//
//  Created by 牟好好 on 2024/11/19.
//

import SwiftUI

struct ScrollPaddingFrameView<Content: View>: View {
    var paddingValue: CGFloat
    var content: Content
    
    var body: some View {
        ScrollView(.horizontal, showsIndicators: false) {
            HStack {
                Spacer(minLength: paddingValue)
                content
                Spacer(minLength: paddingValue)
            }
        }
        .padding(.horizontal, -paddingValue)
    }
}
